#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT(SYSLOG, 1.10, admin@localhost)
AM_INIT_AUTOMAKE(syslog, 1.10)
AC_CONFIG_SRCDIR([common/h/common_def.h])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lpthread':
AC_CHECK_LIB([pthread], [main])

# Checks for header files.
AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h sys/socket.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T

# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([inet_ntoa memset socket])
AM_PATH_XML2(2.7.6)

AC_CONFIG_FILES([Makefile
				common/Makefile
				common/src/Makefile
				application/Makefile
				application/src/Makefile
				transport/Makefile
				transport/src/Makefile
				oam_mgmt/Makefile
				oam_mgmt/src/Makefile])
AC_OUTPUT
